package com.jstyle.jclifexd.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Index;

/**
 * Created by Administrator on 2018/7/25.
 */
@Entity(indexes = {
        @Index(value = "time DESC, address DESC", unique = true)
}
)
public class HeartData {

    String time;
    int heart;
    String address;
    int mode;//0静态心率，1动态心率
    @Generated(hash = 1684839057)
    public HeartData(String time, int heart, String address, int mode) {
        this.time = time;
        this.heart = heart;
        this.address = address;
        this.mode = mode;
    }

    @Generated(hash = 241019369)
    public HeartData() {
    }

    public String getTime() {
        return this.time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getHeart() {
        return this.heart;
    }

    public void setHeart(int heart) {
        this.heart = heart;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getMode() {
        return this.mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }


}
